#!/user/bin/env python3
# -*- coding: utf-8 -*-
#-- anth bluedolphi ---
import json


def getKeyFromDict(arr,keyName,defVlaue = None):


    if( arr is not None)and (keyName  in arr) and (arr[keyName] is not None):
        return  arr[keyName]
    else:
        return defVlaue